from django.db import models
from utils.BaseModel import BaseModel


# Create your models here.

class Banner(BaseModel):
    name = models.CharField(max_length=50, verbose_name='名称')
    image = models.CharField(max_length=255, verbose_name='图片')
    desc = models.CharField(max_length=255, verbose_name='描述')

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'banner'
